//==========================================================================
// Copyright (c) 2000-2008,  Elastos, Inc.  All Rights Reserved.
//==========================================================================
#include <ddk.h>
#include "keypad.h"

ECode CKeypad::Read(
                /* [in] */ Int64 u64Offset,
                /* [in] */ Int32 bytesToRead,
                /* [out] */ MemoryBuf * pBuffer,
                /* [out] */ IEvent * * ppCompletionEvent)
{
    DzSleep(0, NULL);
    return NOERROR;
}

ECode  CKeypad::Write(
                /* [in] */ Int64 u64Offset,
                /* [in] */ const MemoryBuf & buffer,
                /* [out] */ Int32 * pBytesWritten,
                /* [out] */ IEvent * * ppCompletionEvent)
{
    return E_NOT_IMPLEMENTED;
}

ECode CKeypad::Control(
                /* [in] */ Handle32 nControlCode,
                /* [in] */ const MemoryBuf & inBuffer,
                /* [out] */ MemoryBuf * pOutBuffer,
                /* [out] */ IEvent * * ppCompletionEvent)
{
    return NOERROR;
}

void CKeypad::Dispose()
{
}

static CKeypad gKeypad;
EXTERN IDeviceDriver * CDECL CreateKeypad(uint_t uDeviceNo, void *pvParameter)
{
    CKeypad * pThis = &gKeypad;
    return pThis;
}
